	<div class='navbar-btn navbar-right  cart'>
		<?php echo translate("cart"); ?> <br />
		<span><?php  echo $productCount; ?> <?php echo translate("products"); ?></span><br /> 
		<span><?php echo translate("total"); ?>:</span><span class="totalPrice"><?php echo ($productCount > 0 ? makePriceInterval($totalPrice,0,get_setting("currency")) : "");?></span>
	</div>
	
	<!-- SMALL CART -->
	<div id="smallCart" style="display: none;">
		<?php if($productCount == 0): ?>
			<p><?php echo translate("cart_no_products"); ?></p>
		<?php else:?>
			<div class="products">
				<!-- LISTA PRODUSE -->
				<table class="table table-hover">
					<thead>
						<tr>
							<th style="width:40px"><?php echo translate("pictures"); ?></th>
							<th><?php echo translate("product_name"); ?></th>
							<th><?php echo translate("quantity"); ?></th>
							<th><?php echo translate("price"); ?></th>
						</tr>
					</thead>
					<tbody>
						<?php foreach($products as $product):?>
						<tr>
							<td style="width:40px;">
								<a  title="" href="<?php echo $product["url"]; ?>" class="productImage">
									<img class="img-responsive" alt="" src="<?php echo scripts_url().$product["images"][0]["name"]; ?>">
								</a>
							</td>
							<td>
								<a class="uppercase" title="<?php echo $product["name"];?>" href="<?php echo $product["url"]; ?>"><?php echo $product["name"];?></a>
							</td>
							<td><?php echo $product["quantity"]; ?></td>
							<td class="totalPrice"><?php echo $product["price"];?></td>
						</tr>
						<?php endforeach; ?>
					
					
						<?php if(isset($products[0]["discounts"])):?>
							<?php foreach($products[0]["discounts"] as $discount): ?>
								<tr>
									<td>
										&nbsp;
									</td>
									<td>
										<?php echo translate("coupon"); ?> : <strong><?php echo $discount["coupon_code"]; ?></strong>
									</td>
									<td>1</td>
									<td class="totalPrice">-<?php echo makePriceInterval($discount["value"], 0,get_setting("currency")); ?></div>
									<td></td>
								</tr>
							<?php endforeach; ?>
						<?php endif; ?>
					
					
						<?php if(isset($products[0]["reward_discount"])):?>
							<tr>
								<td>
									&nbsp;
								</td>
								<td>
									<?php echo translate("reward_points"); ?>
								</td>
								<td><?php echo $products[0]["reward_discount"]["points"]; ?></td>
								<td>-<?php echo makePriceInterval(get_setting("thankyou_value"), 0,get_setting("currency")); ?></td>
							</tr>
						<?php endif; ?>
					</tbody>
				</table>
				<hr/>
			<?php
				$cartPage = get_site_page_by_slug("cart", $_SESSION["language"]["id"]); 
			?>
			</div>
			<!-- END LISTA PRODUSE -->
			<div class="cartPrice pull-right">
				<?php echo translate("transport_price"); ?>: &nbsp;<strong class="totalPrice"><?php echo makePriceInterval($products[0]["transport_price"], 0,get_setting("currency"));?> </strong> <br />
				<?php echo translate("total_price"); ?>: &nbsp;<strong class="totalPrice"><?php echo makePriceInterval($totalPrice,0,get_setting("currency")); ?></strong>
			</div>
			<a class="cartLink pull-left" title="<?php echo translate("view_cart"); ?>" href="<?php echo site_url().$cartPage["url"].".html"; ?>"><?php echo translate("finalize_order"); ?></a>
			<div class="clearfix"></div>
		<?php endif; ?>
	</div>
	<!-- END SMALL CART POPUP -->
